package com.mp.chart.formatter;

import java.text.DecimalFormat;

public class YValueFormatter implements ValueFormatter {

    private DecimalFormat mFormat;

    public YValueFormatter(String format) {
        mFormat = new DecimalFormat(format);
    }


    public YValueFormatter() {
        mFormat = new DecimalFormat("#0.00");
    }
    
    @Override
    public String getFormattedValue(float value) {
        return mFormat.format(value);
    }

}
